package com.team11.server.controller.admin;

import com.team11.server.pojo.SelKcInformation;
import com.team11.server.service.admin.Admin_TermSelKc_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_TermSelKc_Controller {
    @Autowired
      private Admin_TermSelKc_Service admin_termSelKc_service;
    @PostMapping("/TermSelKc")
    @ApiOperation("条件查询课程信息")
    public List<SelKcInformation> termSelKc(String kcDate,String kcName,
                                            String sxtName,String zrtName){
        HashMap<String,Object> map=new HashMap<>();
        map.put("kcName",kcName);
        map.put("sxtName",sxtName);
        map.put("zrtName",zrtName);
        map.put("kcDate",kcDate);
        return admin_termSelKc_service.termSelKc(map);

    }
}
